﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MaterialDesignThemes.Wpf;

namespace Bind.ViewModel
{
    public class MainViewModel:Notify
    {
        string _Title;
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            get { return _Title; }
            set { _Title = value; RaisePropertyChanged("Title"); }
        }
        string _User;
        /// <summary>
        /// 作业人员
        /// </summary>
        public string User
        {
            get { return _User; }
            set { _User = value; RaisePropertyChanged("User"); }
        }
        string _Time;
        /// <summary>
        /// 时间
        /// </summary>
        public string Time
        {
            get { return _Time; }
            set { _Time = value; RaisePropertyChanged("Time"); }
        }
    }
    public class Notify : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void RaisePropertyChanged(string propertyname)
        {
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyname));
        }
    }
}
